﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BusinessEntities.Model
{
    /// <summary>
    /// Represents a User using the system to manage events.
    /// </summary>   
    public class User
    {
        [Key]
        public int ID { get; set; }        
        [StringLength(128)]
        public string Email { get; set; }
        public string Password { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public bool Activated { get; set; }
        public Role Role { get; set; }
    }

    public enum Role
    {
        Admin,User
    }
}
